import {fsHost} from "../config";
import TokenManager from "./WtTokenManager";

const fileDownload = (url,name) => {
    const token = TokenManager.getToken();
    window.open(`${fsHost}/api/v1/web/download/d?url=${url}&name=${name}&token=${token}`);
};

export default {
    fileDownload,
};